package com.ruoyi.common.config;


public class AppConfig {


    public static String uploadPath = "E:\\code\\iDCOS\\spring-boot\\core-web\\../upload";

    public static String getUploadPath() {
        return uploadPath;
    }


    /**
     * redisson 配置  HOST
     */
    public static final String REDIS_HOST = ConfigReader.getString("redisson.host", "localhost");
    /**
     * redisson 配置  PORT
     */
    public static final int REDIS_PORT = ConfigReader.getInt("redisson.port", 6379);
    /**
     * 定时任务线程池 核心线程数
     */
    public static final Integer taskSchedulerCorePoolSize = ConfigReader.getInt("taskScheduler.corePoolSize", 5);
    /**
     * 定时任务线程池 执行间隔时间
     */
    public static final Integer cacheSyncDbIntervalTime = ConfigReader.getInt("cache.sync.db.interval.time", 60);
    /**
     * 系统使用的数据库名称
     */
    public static final String SYS_DB_NAME = ConfigReader.getString("zy.pro.use.db.name", "lzj");
    /**
     * redis中 消息列表的 最大数量
     */
    public static final Integer CACHE_MSG_LIST_LIMIT_COUNT = ConfigReader.getInt("cache.msg.List.limit.count", 1000);
    /**
     * redis 数据的过期时间
     */
    public static final int CACHE_TTL = ConfigReader.getInt("msg.cache.ttl", 60 * 60 * 24);
    /**
     * 同步消息列表的阈值数量
     */
    public static final int SYNC_MESSAGE_LIMIT_COUNT = ConfigReader.getInt("sync.message.limit.count", 100);

}
